<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<div class="row">
    <div class="box col-md-12">
        <div class="box-inner">
            <div class="box-header well" data-original-title="">
                <h2><i class="glyphicon glyphicon-edit"></i> Change Password</h2>

                
            </div>
            <div class="box-content">
                <form  action="ChangePasswordAction.do" method="post">
                    
                    
                    <div class="form-group">
                        <label for="exampleInputEmail1">Old Password</label>
                        
                        <input type="text" name="oldpassword" class="form-control" id="exampleInputEmail1" placeholder="Enter Old Password" >
                       <%--<html:text property="oldpassword" styleClass="form-control" styleId="exampleInputEmail1" ></html:text>--%>
                            <!--<span style="color: #91170a;font-family: serif;font-size: 14px" id="oldpassword_error_txt"><html:errors property="oldpassword" ></html:errors></span>-->
                    </div>
                   
                   
                    <div class="form-group">
                        <label for="exampleInputEmail1">New Password</label>
                        <input type="text" name="newpassword" class="form-control" id="exampleInputEmail1" placeholder="Enter New Password" >
                    </div>
                    
                        <div class="form-group">
                        <label for="exampleInputEmail1"> ReEnter New Password</label>
                        <input type="text" name="reenternewpassword" class="form-control" id="exampleInputEmail1" placeholder="Re-Enter New Password" >
                    </div>
                    
                    <input type="hidden" name="usertype" value="${sessionScope.usertype}">
                    <c:if test="${sessionScope.usertype eq 'admin'}">
                        <input type="hidden" name="id" value="${sessionScope.admin.id}">
                    </c:if>
                        
                         <c:if test="${sessionScope.usertype eq 'faculty'}">
                        <input type="hidden" name="id" value="${sessionScope.faculty.id}">
                    </c:if>
                        
                         <c:if test="${sessionScope.usertype eq 'student'}">
                        <input type="hidden" name="id" value="${sessionScope.student.id}">
                    </c:if>
                    <div class="form-group">
                    <button type="submit" class="btn btn-default">Submit</button>
                </form>

           
        </div>
    </div>
    <!--/span-->

</div><!--/row-->

    <!-- content ends -->
    </div><!--/#content.col-md-0-->
</div>